<template>
  <div id="app">
    <navigation @up="keyLogin=true" v-show="this.$route.name!=='playSong'"/>
    <router-view />
    <!--这是登录的弹窗-->
    <popup @esc="keyLogin=false" v-if="keyLogin">
      <template slot="login">
        <login @hide="keyLogin=false" />
      </template>
    </popup>
  </div>
</template>

<script>
//import 'assets/css/initialize.css';
import navigation from "components/notbusiness/navigation";
import popup from "components/notbusiness/popup";
import login from "components/notbusiness/login";
import require from "requests/index";
import player from "components/searchComponents/player"
export default {
  name: "App",
  data() {
    return {
      keyLogin: null
    };
  },
  components: {
    navigation,
    popup,
    login,
    player
  },
  methods: {},
  mounted() {
    if(localStorage.userId){
      this.$store.commit('setData',localStorage)
    }
    //console.log(localStorage)
  }
};
</script>

<style lang="less">
@import "~@/assets/css/initialize.css";
#app {
  width: 100%;
  min-width: 1260px;
}
</style>
